package karileet.meeting.profile.list.holder;

import android.widget.CheckBox;
import android.widget.TextView;
import karileet.meeting.profile.list.item.ListCheckboxItem;

/**
 * Class representing layout object, meanwhile reflecting RowModel
 *
 * @author markus
 */
public class ListCheckboxItemHolder {
    private TextView title;
    private CheckBox cb;
    private ListCheckboxItem listCheckboxItem;

    public ListCheckboxItem getTag() {
        return listCheckboxItem;
    }

    public void setTag(ListCheckboxItem listCheckboxItem) {
        this.listCheckboxItem = listCheckboxItem;
    }

    public TextView getTitle() {
        return title;
    }

    public void setTitle(TextView title) {
        this.title = title;
    }

    public void setTitleText(CharSequence text) {
        this.title.setText(text);
    }

    public CheckBox getCb() {
        return cb;
    }

    public void setCb(CheckBox cb) {
        this.cb = cb;
    }

    public void check(boolean checked) {
        this.cb.setChecked(checked);
    }
}
